<?php
$this->breadcrumbs=array(
	'Bills'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'List Bill', 'url'=>array('index')),
	array('label'=>'Create Bill', 'url'=>array('create')),
	array('label'=>'Update Bill', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete Bill', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Bill', 'url'=>array('admin')),
);
?>

<h1>View Bill #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		array(
		'label'=>'Name',
		'type'=>'raw',
		'value'=>$model->cusinfo->c_fname .' ' .$model->cusinfo->c_lastname),
		array(
		'label'=>'Purchase Date',
		'type'=>'raw',
		'value'=>$model->cusinfo->c_purchasedate),
		array(
		'label'=>'Product',
		'type'=>'raw',
		'value'=>$model->product->p_name),
		'amount',
		'money',
	),
)); ?>
